package com.ceres.login.service;

import com.ceres.login.pojo.Admin;
import com.ceres.login.pojo.Role;
import com.ceres.login.pojo.User;

import java.util.Date;
import java.util.List;

public interface UserService {

    /**
     * 后台登录
     * @param username
     * @param password
     * @return
     */
    int login(String username,String password );

    User findByUsername(String username);
    void editUserStatus(String username);
    List<Integer>findRoleByUsername(String username);
    Date findDateByusername(String username);
}
